var ps = {
		
		getLoadUrl:function(){
			
			return "patrolStatic/list"
			
		},
		
		loadPatrolStatic:function(param){
			var _default = {"tablist":ps.getTabList(param)};
			param = $.extend({},_default,param);
			console.log(param);
			loadHtml(ps.getLoadUrl(),param);
		},
		
		simbleLoadStatic:function(devid){
			ps.loadPatrolStatic({devid:devid});
		},
		
		getTabList:function(param){
			  var list = [];
			  $(".page-header").not(".hide").find(".nav-tabs").find("li a").each(function(index,ele){
				  if(!$(this).is(":hidden") && !$(this).hasClass("hide")){
					  if($(this).data("title") && $(this).data("url")){
						  list.push({title:$(this).data("title"),url:$(this).data("url")+"&devid="+param.devid});
					  }
				  }
			  })
			  return JSON.stringify(list);
		},
		
		initTabList:function(tablist){
			var _con = $(".page-header .nav-tabs");
			var _html = "";
			var _lstUrl = "";
			if(tablist && tablist.length > 0){
				tablist.forEach(function(v,index){
					if(index == tablist.length-1){
						_lstUrl = v.url;
					}
					_html+='<li><a href="javascript:void(0);" onclick="loadHtml(\''+v.url+'\')" data-url="'+v.url+'">'+v.title+'</a></li>';
				})
			}
			_html+='<li class="active"><a href="javascript:void(0);" data-url="">ç¹æ£åæ'
				+'<span class="iconfont icon-del-close1 fh-dels" onclick="loadHtml(\''+_lstUrl+'\')"></span></a>'
				+'</li>';
			_con.html(_html);
		},
		
}